package com.spring.sd.trans;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan({"com.spring.sd.trans"})
public class TransApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TransApplication.class, args);

        InsertPerson insertPerson = context.getBean(InsertPerson.class);

        insertPerson.test();

        context.close();
    }
}
